﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace ConceptCorporateAdmin.Gui
{
    public enum TipuriNoduri
    {
        Categorie, ActeNormative, Entitati
    }

    public class ExTreeNode : TreeNode
    {
        TipuriNoduri tipNod = TipuriNoduri.Categorie;
        Object innerObject = null;


        public ExTreeNode(string text, TipuriNoduri tip, Object innerObject)
            : base(text)
        {
            this.innerObject = innerObject;
            this.tipNod      = tip;
            //
            if (TipNod == TipuriNoduri.Categorie)
            {
                this.ImageIndex = 0;
                this.SelectedImageIndex = 0;
            }
            if (TipNod == TipuriNoduri.ActeNormative)
            {
                this.ImageIndex = 1;
                this.SelectedImageIndex = 1;
            }
            if (TipNod == TipuriNoduri.Entitati)
            {
                this.ImageIndex = 2;
                this.SelectedImageIndex = 2;
            }
            
        }

        public TipuriNoduri TipNod
        {
            get { return tipNod; }
        }

        public Object InnerObject
        {
            get { return innerObject; }
            set { innerObject = value; }
        }
    }
}
